package com.qeegoo.b2bautozityp.moudle.login.model;

/**
 * Created by lining on 2017/9/20.
 */

public class LoginBean {

    /**
     * status : {"code":"0001","msg":"用户名或密码不正确！"}
     */

    public StatusBean status;
    /**
     * data : {"partyName":"积压件供应商","partyId":1611301710580000,"username":"jyjgys","token":"4E1B7BA695B57CE2"}
     */

    public DataBean data;

    public static class StatusBean {
        /**
         * code : 0001
         * msg : 用户名或密码不正确！
         */

        public String code;
        public String msg;
        public boolean isSuccess() {
            return code.equals("0000");
        }
    }

    public static class DataBean {
        /**
         * partyName : 积压件供应商
         * partyId : 1611301710580000
         * username : jyjgys
         * token : 4E1B7BA695B57CE2
         */

        public String partyName;
        public String partyId;
        public String username;
        public String token;
    }
}
